package cn.game.main;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

import cn.game.compare.CompareGameFactory;
import cn.game.core.Game;
import cn.game.core.GameFactory;

public class GameStart {
	public static void main(String[] args) {
		GameFactory gameFactory = new CompareGameFactory();
		Game game = gameFactory.getGame();
		
		Scanner scan = new Scanner(System.in);
		System.out.println("请输入玩家数量:");
		int playerSize = scan.nextInt();
		System.out.println("请输入每个房间最大玩家数量:");
		int RoomPlayerSize = scan.nextInt();
		
		Map param = new HashMap();
		param.put("PlayerSize", playerSize);// 玩家人数
		param.put("RoomPlayerSize", RoomPlayerSize);// 房间限制人数
		
		game.init(param);
		game.start();
	}
	
	
}
